<?php

$str="[" ;
foreach ($marks as $marks_item){
    $str=$str."{'id':'".$marks_item['id']."','title':'".$marks_item['title']."','address':'".$marks_item['address']."','date':'".$marks_item['date']."'}," ;
}
$str=substr($str,0,(strlen($str)-1));
$str=$str."]";
echo $str;
